package com.wn.authentication.service.impl;

import com.wn.authentication.mapper.UserMapper;
import com.wn.authentication.service.UserService;
import com.wn.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wuqingting
 * @date 2022/10/25
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(User user) {
        return userMapper.getByWorkNumberAndPassword(user);
    }
}
